package cn.wx.org.mapper;

import cn.wx.basic.mapper.BaseMapper;
import cn.wx.org.domain.Employee;
import cn.wx.org.query.EmployeeQuery;
import cn.wx.system.domain.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper extends BaseMapper<Employee> {

    void saveEmployeRole(@Param("eid") Long id,@Param("rid") Long role);

    void removeEmployeRole(Long id);

    //查询当前登录人的所有权限
    List<String> loadPerssionSnByLogininfoId(Long id);

    //查询当前登录人的所有菜单
    List<Menu> loadMenusByLogininfoId(Long id);

    Employee loadByLogininfoId(Long id);

    List<Employee> findListEmp(Long shopid);
}
